<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>我的小麦铺</title>
		<link href="<c:url value="/css/base.css"/>" rel="stylesheet" type="text/css" />
		<link href="<c:url value="/css/detail_page.css"/>" rel="stylesheet" type="text/css" />
		<link href="<c:url value="/css/fdj.css"/>" rel="stylesheet" type="text/css" />

	<style>
	#spec-n1{
	    position:absolute;
		left:800px;
		top:20px;
	}
	.details01_right{
	    position:absolute;
		left:400px;
		top:180px;
	}
	</style>

	</head>
	<body>
		<!--[if !IE]>头部<![endif]-->
		<!--[if !IE]>中间产品详细<![endif]-->
		<div class="details">
			<!--[if !IE]>方向<![endif]-->
			<div style="margin-left:380px;" class="instructions">
				<a href="<c:url value="frontSecurityMgr?act=tomainmenu"/>" target=_top>首页</a>&nbsp; > &nbsp;
				<a href="<c:url value="goodMgr?act=list_all&ctg_no=${pcategory.categoryNo }"/>">${pcategory.categoryName}</a>&nbsp; > &nbsp;
				<a href="<c:url value="goodMgr?act=list_all&ctg_no=${category.categoryNo }"/>">${category.categoryName}</a>&nbsp; > &nbsp;
				<span>${good.goodsName }</span>
			</div>
			<div style="margin-left:380px;"class="details01">
				<!--[if !IE]>左侧<![endif]-->
				<div class="details01_left">
					<!--[if !IE]>大图<![endif]-->
					<div id="spec-n1" class="jqzoom" >
						<img id="img254035"  alt="商品照片"  src="<c:url value="/goodMgr?act=get_pic&g_no=${good.goodsNo}"/>"
							 width="320" height="320" />
					</div>

					<!--[if !IE]>右侧<![endif]-->
					<div class="details01_right">
						<div class="details01_text">
							<div class="details01_text01">
								<input type="hidden" id="wareId" />
								<input type="hidden" id="goodPrice" value="${good.goodsPrice}" />
								<h1>
									${good.goodsName }
								</h1>
								<h2>
									${good.goodsMemo }
								</h2>
								<h3>
									产品编号：${good.goodsNo }
								</h3>
								<h3>
									单价 ：
									<samp class="font">
										¥
									</samp>
									${good.goodsPrice}
								</h3>

							</div>
							<div class="details01_text02">
								<input type="hidden" id="goodSpecificationnumber"
									value="${goodSpecificationnumber}" />
								<input type="hidden" id="selectSpecificationVal" />
								<input type="hidden" id="goodnumber" value="${warehousecount }" />
								<input type="hidden" id="wareSpecificationValId" />
								<input type="hidden" id="wareSpecificationValSort" />
								<div class="details01_text0202">
									<h1>
										购买数量：
									</h1>
									<span><input name="" type="button"
											class="subtractionButton" onclick="subtraction('1')" /> </span>
									<samp>
										<input name="" id="changeNumber" type="text"
											class="additionInput" value="1" />
									</samp>
									<span><input name="" type="button"
											class="additionButton" onclick="subtraction('2')" /> </span>
									<h1>
										件
									</h1>
								</div>
							</div>
							<a href="<c:url value="goodMgr?act=fromGoodToCart&ctg_no=${category.categoryNo}&goodNo=${good.goodsNo}&good_num="/>1" class="action-add-cart xmAddShopCart" onclick="addtocart(${good. goodsNo})">加入购物车</a>
						</div>
						<!--[if !IE]>右侧结束<![endif]-->
					</div>
					<c:if test="${not empty addok}">
					      	 <script type="text/javascript">
					      	 alert("${addok}");
					      	 </script>
					</c:if>
				</div>
	</div>
	</body>
</html>
